<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body>
        <div id="app">
            {{msg}}
        </div>
        <script src="../vue.js"></script>
        <script>
            let vm = new Vue({
                el: '#app',
                data() {
                    return {
                        msg: '美术馆',
                    };
                },
                methods: {},
            });
            vm.msg = '江西美术馆';
            Vue.nextTick(() => {
                console.dir(vm.$el);
                console.log(vm.$el.innerText === '江西美术馆','nextTick'); // true
            });
            console.log(vm.$el.innerText === '江西美术馆','默认'); // false
        </script>
    </body>
</html>
